#include<bits/stdc++.h>
using namespace std;
void solve(){
	long long a,b;
	cin >> a >> b;
	if(b == 1){
		cout << "NO" << "\n";
		return;
	}else{
		cout << "YES" << "\n";
		cout << a * b << " " << a << " " << a * (b + 1) << "\n";
	}
}
int main(){
	int t;
	cin >> t;
	while(t--) solve();
}